<?php

namespace App\Models;

class IndexData extends BaseModel
{
    protected $table = 'index_data';
    //主键ID
    protected $primaryKey = 'id';

    public function getBusinessIndexOne() {
        return $this->belongsTo(BusinessIndex::class, 'index_id');
    }
    public function getBusinessNameOne() {
        return $this->belongsTo(BusinessType::class, 'type_id');
    }
}
